<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>红包推荐 - 社交平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #E63946;
            --primary-light: #FFE5E7;
            --secondary: #457B9D;
            --light: #F1FAEE;
            --dark: #1D3557;
            --accent: #A8DADC;
            --border: #E5E7EB;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: var(--light);
            color: var(--dark);
            padding-top: 20px;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
        }
        
        .section-title {
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--primary);
            display: inline-block;
        }
        
        .redpacket-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-bottom: 1.5rem;
        }
        
        .redpacket-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .redpacket-header {
            padding: 15px 20px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid var(--border);
        }
        
        .redpacket-author {
            display: flex;
            align-items: center;
            flex-grow: 1;
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;
        }
        
        .author-name {
            font-weight: 600;
            margin-bottom: 0;
        }
        
        .redpacket-time {
            font-size: 0.85rem;
            color: #6B7280;
        }
        
        .redpacket-content {
            padding: 20px;
        }
        
        .redpacket-title {
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--primary);
        }
        
        .redpacket-desc {
            color: #4B5563;
            margin-bottom: 15px;
        }
        
        .redpacket-amount {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 15px;
        }
        
        .redpacket-footer {
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            border-top: 1px solid var(--border);
            background-color: #FAFAFA;
        }
        
        .redpacket-meta {
            display: flex;
            align-items: center;
            color: #6B7280;
            font-size: 0.9rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            margin-right: 1.5rem;
        }
        
        .meta-item i {
            margin-right: 5px;
        }
        
        .redpacket-actions {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: #6B7280;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .action-btn:hover {
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--primary);
        }
        
        /* 网格布局样式 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }
        
        .grid-redpacket {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .grid-redpacket .redpacket-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .grid-redpacket .redpacket-amount {
            margin-top: auto;
        }
        
        /* 列表布局样式 */
        .list-layout .redpacket-card {
            display: flex;
            margin-bottom: 1rem;
        }
        
        .list-redpacket-image {
            width: 150px;
            flex-shrink: 0;
        }
        
        .list-redpacket-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .list-redpacket-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .list-redpacket-content .redpacket-footer {
            margin-top: auto;
        }
        
        /* 大图布局样式 */
        .featured-layout .redpacket-card {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }
        
        .featured-image {
            width: 100%;
            height: 100%;
        }
        
        .featured-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .featured-content {
            display: flex;
            flex-direction: column;
        }
        
        .featured-content .redpacket-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .featured-content .redpacket-amount {
            font-size: 2rem;
            margin-top: auto;
        }
        
        /* 红包标签 */
        .redpacket-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        .redpacket-tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
        }
        
        /* 红包状态 */
        .redpacket-status {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: var(--primary);
            color: white;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .status-expired {
            background-color: #6B7280;
        }
        
        .status-limited {
            background-color: #F59E0B;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .featured-layout .redpacket-card {
                grid-template-columns: 1fr;
            }
            
            .featured-image {
                height: 250px;
            }
        }
        
        @media (max-width: 768px) {
            .list-layout .redpacket-card {
                flex-direction: column;
            }
            
            .list-redpacket-image {
                width: 100%;
                height: 200px;
            }
            
            .redpacket-footer {
                flex-direction: column;
                gap: 10px;
                padding: 15px 20px;
            }
            
            .redpacket-actions {
                justify-content: flex-end;
            }
        }
        
        @media (max-width: 576px) {
            .redpacket-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .redpacket-meta {
                flex-wrap: wrap;
            }
            
            .meta-item {
                margin-bottom: 5px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="section-title">热门红包推荐</h1>
        
        <!-- 大图布局红包 -->
        <div class="section-subtitle mb-3">
            <h2 class="h5 text-muted">精选推荐</h2>
        </div>
        <div class="featured-layout mb-5">
            <div class="redpacket-card position-relative">
                <div class="featured-image">
                    <img src="https://picsum.photos/800/600?random=10" alt="电商平台春节大红包活动" class="img-fluid">
                </div>
                <div class="featured-content">
                    <div class="redpacket-header">
                        <div class="redpacket-author">
                            <img src="https://picsum.photos/100/100?random=101" alt="电商平台官方账号" class="author-avatar">
                            <div>
                                <p class="author-name">电商平台官方账号</p>
                                <p class="redpacket-time">2小时前发布</p>
                            </div>
                        </div>
                    </div>
                    <div class="redpacket-content">
                        <div class="redpacket-status">限时领取</div>
                        <h3 class="redpacket-title">春节大促红包来袭，最高可领888元！</h3>
                        <div class="redpacket-tags">
                            <span class="redpacket-tag">满减券</span>
                            <span class="redpacket-tag">限时</span>
                            <span class="redpacket-tag">全场通用</span>
                        </div>
                        <p class="redpacket-desc">春节大促期间，平台发放亿元红包，满100减10、满300减50、满500减100，更有机会抽取888元无门槛红包！先到先得，领完即止。</p>
                        <div class="redpacket-amount">¥888 最高金额</div>
                    </div>
                    <div class="redpacket-footer">
                        <div class="redpacket-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>25.8k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-comment"></i>
                                <span>1.2k 评论</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-heart"></i>
                                <span>5.6k 点赞</span>
                            </div>
                        </div>
                        <div class="redpacket-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>点赞</span>
                            </button>
                            <button class="action-btn comment-btn">
                                <i class="far fa-comment"></i>
                                <span>评论</span>
                            </button>
                            <button class="action-btn share-btn">
                                <i class="fas fa-share-alt"></i>
                                <span>分享</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 网格布局红包 -->
        <div class="section-subtitle mb-3">
            <h2 class="h5 text-muted">热门红包</h2>
        </div>
        <div class="grid-layout mb-5">
            <!-- 红包1 -->
            <div class="redpacket-card grid-redpacket position-relative">
                <div class="redpacket-header">
                    <div class="redpacket-author">
                        <img src="https://picsum.photos/100/100?random=102" alt="外卖平台官方" class="author-avatar">
                        <div>
                            <p class="author-name">外卖平台官方</p>
                            <p class="redpacket-time">5小时前发布</p>
                        </div>
                    </div>
                </div>
                <div class="redpacket-content">
                    <div class="redpacket-status status-limited">限量</div>
                    <h3 class="redpacket-title">周末外卖红包，满50减15</h3>
                    <div class="redpacket-tags">
                        <span class="redpacket-tag">外卖券</span>
                        <span class="redpacket-tag">周末专享</span>
                    </div>
                    <p class="redpacket-desc">周末美食福利，领取红包下单立减，新老用户均可参与，每个用户限领3张。</p>
                    <div class="redpacket-amount">¥15 减免金额</div>
                </div>
                <div class="redpacket-footer">
                    <div class="redpacket-meta">
                        <div class="meta-item">
                            <i class="far fa-eye"></i>
                            <span>18.3k</span>
                        </div>
                        <div class="meta-item">
                            <i class="far fa-comment"></i>
                            <span>856</span>
                        </div>
                        <div class="meta-item">
                            <i class="far fa-heart"></i>
                            <span>3.2k</span>
                        </div>
                    </div>
                    <div class="redpacket-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-heart"></i>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 红包2 -->
            <div class="redpacket-card grid-redpacket position-relative">
                <div class="redpacket-header">
                    <div class="redpacket-author">
                        <img src="https://picsum.photos/100/100?random=103" alt="打车平台官方" class="author-avatar">
                        <div>
                            <p class="author-name">打车平台官方</p>
                            <p class="redpacket-time">昨天 18:30</p>
                        </div>
                    </div>
                </div>
                <div class="redpacket-content">
                    <div class="redpacket-status">可用</div>
                    <h3 class="redpacket-title">工作日通勤红包，满20减5</h3>
                    <div class="redpacket-tags">
                        <span class="redpacket-tag">出行券</span>
                        <span class="redpacket-tag">工作日</span>
                    </div>
                    <p class="redpacket-desc">工作日早高峰晚高峰专属红包，通勤更优惠，一键领取，立即使用。</p>
                    <div class="redpacket-amount">¥5 减免金额</div>
                </div>
                <div class="redpacket-footer">
                    <div class="redpacket-meta">
                        <div class="meta-item">
                            <i class="far fa-eye"></i>
                            <span>12.5k</span>
                        </div>
                        <div class="meta-item">
                            <i class="far fa-comment"></i>
                            <span>432</span>
                        </div>
                        <div class="meta-item">
                            <i class="far fa-heart"></i>
                            <span>2.1k</span>
                        </div>
                    </div>
                    <div class="redpacket-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-heart"></i>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 红包3 -->
            <div class="redpacket-card grid-redpacket position-relative">
                <div class="redpacket-header">
                    <div class="redpacket-author">
                        <img src="https://picsum.photos/100/100?random=104" alt="视频会员中心" class="author-avatar">
                        <div>
                            <p class="author-name">视频会员中心</p>
                            <p class="redpacket-time">3天前发布</p>
                        </div>
                    </div>
                </div>
                <div class="redpacket-content">
                    <div class="redpacket-status status-expired">已过期</div>
                    <h3 class="redpacket-title">会员充值红包，立减20元</h3>
                    <div class="redpacket-tags">
                        <span class="redpacket-tag">会员券</span>
                        <span class="redpacket-tag">充值</span>
                    </div>
                    <p class="redpacket-desc">视频会员季卡、年卡充值立减，新用户首次充值更优惠，错过等明年。</p>
                    <div class="redpacket-amount">¥20 减免金额</div>
                </div>
                <div class="redpacket-footer">
                    <div class="redpacket-meta">
                        <div class="meta-item">
                            <i class="far fa-eye"></i>
                            <span>9.7k</span>
                        </div>
                        <div class="meta-item">
                            <i class="far fa-comment"></i>
                            <span>312</span>
                        </div>
                        <div class="meta-item">
                            <i class="far fa-heart"></i>
                            <span>1.8k</span>
                        </div>
                    </div>
                    <div class="redpacket-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-heart"></i>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 列表布局红包 -->
        <div class="section-subtitle mb-3">
            <h2 class="h5 text-muted">最新红包</h2>
        </div>
        <div class="list-layout">
            <!-- 红包1 -->
            <div class="redpacket-card">
                <div class="list-redpacket-image">
                    <img src="https://picsum.photos/400/300?random=21" alt="超市满减红包" class="img-fluid">
                </div>
                <div class="list-redpacket-content">
                    <div class="redpacket-header">
                        <div class="redpacket-author">
                            <img src="https://picsum.photos/100/100?random=105" alt="连锁超市官方" class="author-avatar">
                            <div>
                                <p class="author-name">连锁超市官方</p>
                                <p class="redpacket-time">1小时前发布</p>
                            </div>
                        </div>
                    </div>
                    <div class="redpacket-content">
                        <h3 class="redpacket-title">超市线上满100减20，生鲜食品通用</h3>
                        <div class="redpacket-tags">
                            <span class="redpacket-tag">超市券</span>
                            <span class="redpacket-tag">生鲜可用</span>
                        </div>
                        <p class="redpacket-desc">线上超市购物满100立减20，生鲜、日用品均可使用，支持1小时送达服务。</p>
                        <div class="redpacket-amount">¥20 减免金额</div>
                    </div>
                    <div class="redpacket-footer">
                        <div class="redpacket-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>5.2k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-comment"></i>
                                <span>187 评论</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-heart"></i>
                                <span>956 点赞</span>
                            </div>
                        </div>
                        <div class="redpacket-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>点赞</span>
                            </button>
                            <button class="action-btn comment-btn">
                                <i class="far fa-comment"></i>
                                <span>评论</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 红包2 -->
            <div class="redpacket-card">
                <div class="list-redpacket-image">
                    <img src="https://picsum.photos/400/300?random=22" alt="书店优惠券" class="img-fluid">
                </div>
                <div class="list-redpacket-content">
                    <div class="redpacket-header">
                        <div class="redpacket-author">
                            <img src="https://picsum.photos/100/100?random=106" alt="连锁书店官方" class="author-avatar">
                            <div>
                                <p class="author-name">连锁书店官方</p>
                                <p class="redpacket-time">3小时前发布</p>
                            </div>
                        </div>
                    </div>
                    <div class="redpacket-content">
                        <h3 class="redpacket-title">新书上市优惠，满200减50</h3>
                        <div class="redpacket-tags">
                            <span class="redpacket-tag">图书券</span>
                            <span class="redpacket-tag">新书</span>
                        </div>
                        <p class="redpacket-desc">本月新书满200减50，文学、科技、儿童读物等全品类参与，线上线下均可使用。</p>
                        <div class="redpacket-amount">¥50 减免金额</div>
                    </div>
                    <div class="redpacket-footer">
                        <div class="redpacket-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>3.7k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-comment"></i>
                                <span>124 评论</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-heart"></i>
                                <span>689 点赞</span>
                            </div>
                        </div>
                        <div class="redpacket-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>点赞</span>
                            </button>
                            <button class="action-btn comment-btn">
                                <i class="far fa-comment"></i>
                                <span>评论</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 红包3 -->
            <div class="redpacket-card">
                <div class="list-redpacket-image">
                    <img src="https://picsum.photos/400/300?random=23" alt="旅游优惠券" class="img-fluid">
                </div>
                <div class="list-redpacket-content">
                    <div class="redpacket-header">
                        <div class="redpacket-author">
                            <img src="https://picsum.photos/100/100?random=107" alt="旅游平台官方" class="author-avatar">
                            <div>
                                <p class="author-name">旅游平台官方</p>
                                <p class="redpacket-time">6小时前发布</p>
                            </div>
                        </div>
                    </div>
                    <div class="redpacket-content">
                        <h3 class="redpacket-title">春季旅游红包，满1000减150</h3>
                        <div class="redpacket-tags">
                            <span class="redpacket-tag">旅游券</span>
                            <span class="redpacket-tag">限时</span>
                        </div>
                        <p class="redpacket-desc">春季踏青季，旅游产品满1000减150，涵盖酒店、机票、旅游套餐等，有效期至月底。</p>
                        <div class="redpacket-amount">¥150 减免金额</div>
                    </div>
                    <div class="redpacket-footer">
                        <div class="redpacket-meta">
                            <div class="meta-item">
                                <i class="far fa-eye"></i>
                                <span>7.9k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-comment"></i>
                                <span>256 评论</span>
                            </div>
                            <div class="meta-item">
                                <i class="far fa-heart"></i>
                                <span>1.3k 点赞</span>
                            </div>
                        </div>
                        <div class="redpacket-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>点赞</span>
                            </button>
                            <button class="action-btn comment-btn">
                                <i class="far fa-comment"></i>
                                <span>评论</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 点赞功能
        document.querySelectorAll('.like-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('liked');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('liked');
                }
            });
        });
        
        // 评论按钮功能
        document.querySelectorAll('.comment-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const redpacketTitle = this.closest('.redpacket-card').querySelector('.redpacket-title').textContent;
                alert(`打开评论区：${redpacketTitle}`);
            });
        });
        
        // 分享按钮功能
        document.querySelectorAll('.share-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const redpacketTitle = this.closest('.redpacket-card').querySelector('.redpacket-title').textContent;
                alert(`分享红包：${redpacketTitle}`);
            });
        });
    </script>
</body>
</html>
    
